package com.cctc.utils;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

/**
 * @Name ApplicationContextHelper
 * @Description: ApplicationContext 实例帮助类
 * @Author: lichao
 * @Email: li2chao@126.com
 * @Date: 2024-01-15 10:56:30
 **/
public class ApplicationContextHelper implements ApplicationContextAware {
    private ApplicationContext applicationContext;
    @Override
    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
        this.applicationContext = applicationContext;
    }

    // 使用 ApplicationContext IoC 容器操作 Bean 实例

}

